import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/lazy_page_entity.dart';

LazyPageEntity<T> $LazyPageEntityFromJson<T>(Map<String, dynamic> json) {
  final LazyPageEntity<T> loginBeanEntity = LazyPageEntity();

  final int? total = jsonConvert.convert<int>(json['total']);
  if (total != null) {
    loginBeanEntity.total = total;
  }

  final List<T> list = jsonConvert.convertList<T>(json['list']);
  loginBeanEntity.list = list;

  return loginBeanEntity;
}

Map<String, dynamic> $LazyPageEntityToJson(LazyPageEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['list'] = entity.list;
  data['total'] = entity.total;
  return data;
}
